package component.security.hardware;


/**
 * 读取网卡地址 
 * 
 */

public class JavaNetWorkCardInfo implements NetWorkCardInfo {
	public String getMacInfo() {
		String os = System.getProperty("os.name");
		String retrunStr = "";
		if (os != null) {
			String oslower = os.toLowerCase();
			if (oslower.startsWith("windows")) {
				retrunStr = MacUtil.getWinMacInfo();
			} else if (oslower.startsWith("linux")) {
				retrunStr =  MacUtil.getLinuxMacInfo();
			}
		}
		if (retrunStr == null || retrunStr.trim().equals("")) 
			retrunStr = "00-00-00-00";
		return retrunStr;
	}
}
